import {Component} from '@angular/core';
import {NavController} from 'ionic-angular';
import {NativeStatusBarPage} from './status-bar/status-bar';
import {NativeToastPage} from './toast/toast';
import {NativeCameraPage} from './camera/carema';
import {NativePhotoLibraryPage} from './photo-library/photo-library';

@Component({
  selector: 'page-native',
  templateUrl: 'native.html'
})
export class NativePage {
  items: Array<any>

  constructor(public navCtrl: NavController) {
    this.items = [
      {name: 'Status Bar', component: NativeStatusBarPage},
      {name: 'Toast', component: NativeToastPage},
      {name: 'Camera', component: NativeCameraPage},
      {name: 'PhotoLibrary', component: NativePhotoLibraryPage},
    ]
  }

  itemSelected(item: any) {
    this.navCtrl.push(item.component)
  }

}
